package com.shelpe.services.lexicon.constants;

public enum Device {

	all(0), mobile(1), pc(2);
	
	private int value;

	private Device(int v) {
		this.value = v;
	}

	public int getValue() {
		return this.value;
	}
	
	public static Device from(int value){
		Device en = Device.all;
		for(Device e: Device.values()){
			if(e.getValue() == value){
				en = e;
				break;
			}
		}
		return en;
	}
}
